#include <stdio.h>
#include <stdlib.h>

#define LEFT 1
#define RIGHT 100

int main()
{
    int i;
    int start, end = 10;
    int sum = 0;

    i = LEFT;

loop:
    sum += i;

    if (i <= RIGHT)
    {
        goto loop;
    }

    printf("sum = %d\n", sum);

#if 0
    for (i = LEFT; i <= RIGHT; i++)
    {
        sum += i;
        i++;
        if (i > RIGHT)
        {
            break;
        }
    }

    printf("sum = %d\n", sum);
#endif

#if 0
    printf("Please enter:");
    scanf("%d", &start);

    do
    {
        sum += start;
        start++;
    } while (start <= end);

    printf("start = %d\n", start);
    printf("sum = %d\n", sum);
#endif

#if 0
    i = LEFT;

    do
    {
        sum += i;
        i++;
    } while (i <= RIGHT);

    printf("sum = %d\n", sum);
#endif

#if 0

// while();

    i = LEFT;

    while (i <= RIGHT)
    {
        sum += i;
        i++;
    }

    printf("sum = %d\n", sum);
#endif

    exit(0);
}